package com.shopping.service;

import com.shopping.bean.Cart;
import com.shopping.bean.Product;
import com.shopping.util.Page;

import java.util.List;

public interface ICartService {
    int addCart(Cart cart);
    Cart editCart(Cart cart);
    int deleteCart(Cart cart);
    List<Cart> getList(Page page, String text);
    Product getProductById(int id);
    int getCount(String text);
    Cart getCart(Cart cart);
    List<Cart> getCarts( int  userid );
}
